﻿using MediatR;
using THE_WIND_RISES.Common.Dtos;

namespace Production_Set.API.Application.Commands.Resourctes
{
    public class ResourceCreateCommend:IRequest<Result>
    {
        public int ResourceId { get; set; }

        /// <summary>
        /// 资源编码
        /// </summary>
        public string ResourceNo { get; set; }

        /// <summary>
        /// 资源名称
        /// </summary>
        public string ResourceName { get; set; }

        /// <summary>
        /// 资源类别
        /// </summary>
        public int ResourceTypeId { get; set; }

        /// <summary>
        /// 资源描述
        /// </summary>
        public string ResourceDescription { get; set; }

        /// <summary>
        /// 资源单位
        /// </summary>
        public string ResourceUnit { get; set; }

        /// <summary>
        /// 计算成本
        /// </summary>
        public string ResourceCost { get; set; }

        /// <summary>
        /// 费用类型
        /// </summary>
        public int ExpensesId { get; set; }

        /// <summary>
        /// 计算方式
        /// </summary>
        public string ResourceCalculation { get; set; }

        /// <summary>
        /// 基准类型
        /// </summary>
        public int BenchmarkId { get; set; }

        /// <summary>
        /// 单位成本
        /// </summary>
        public int ResourcePrice { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public bool ResourceState { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public int ApprovalStatus { get; set; } = 0;

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }=false;  

        /// <summary>
        /// 操作人
        /// </summary>
        public string Handle { get; set; }
        /// <summary>
        /// 操作内容
        /// </summary>
        public string HandleContext { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime HandleTime { get; set; }
        /// <summary>
        /// pid=1:创建   pid=2:审批   pid=3:删除   pid=4:修改  
        /// </summary>
        public int Pid { get; set; }
    }
}
